package movie.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import movie.entity.Consumer;
import movie.entity.Member;
import movie.mapper.ConsumerMapper;
import movie.service.MemberService;
@Service
public class MemberServiceImpl implements MemberService {
	@Autowired
	private ConsumerMapper consumerMapper;
	@Override
	public String findMtype(int mid) {
		return consumerMapper.findMemberType(mid);
	}
	@Override
	public float findDiscount(int mid) {
		return consumerMapper.findMemberDiscount(mid);
	}
	@Override
	public List<Member> findAmember(){
		return consumerMapper.findAllMember();
	}
	@Override
	public int updateMember(Consumer consumer) {
		return consumerMapper.updateMemberType(consumer);
	}
}
